<?php
namespace CAI\HistoricoBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Doctrine\ORM\EntityRepository;

class TorneoType extends AbstractType
{
	public function buildForm(FormBuilderInterface $builder, array $options)
	{
		$builder
		->add('torneosNombre', 'text')
		->add('torneosTipo', 'choice', array('choices' => array('N'=>'Nacional', 'I'=>'Internacional')));
	}
	
	public function getName()
	{
		return 'torneosNombre';
	}
	
	public function setDefaultOptions(OptionsResolverInterface $resolver)
	{
		$resolver->setDefaults(array(
				'data_class' => 'CAI\HistoricoBundle\Entity\Torneo',
		));
	}
}